# Maintainer: Ben Fuhrmannek <ben+alpine@sektioneins.de>
pkgname=ovpncc
pkgver=0.1_rc1
pkgrel=0
pkgdesc="OpenVPN Security Config Checker"
url="https://github.com/sektioneins/ovpncc"
arch="noarch"
license="Apache-2.0"
depends="tcl tcl-lib"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sektioneins/ovpncc/archive/v${pkgver/_/}.tar.gz"
builddir="$srcdir/$pkgname-${pkgver/_/}"
options="!check" # No test suite

package() {
	install -Dvm755 ovpncc -t "$pkgdir"/usr/bin
	install -Dvm644 ovpncc.tcl -t "$pkgdir"/usr/lib/"$pkgname"
	install -Dvm755 scframework/scframework.tcl -t "$pkgdir"/usr/lib/"$pkgname"/scframework
	install -Dvm644 README.md LICENSE.txt -t "$pkgdir"/usr/share/doc/"$pkgname"
}

sha512sums="
7a4d461ccddadfdb306225e5c970446369f24f81e482c7dabfdb08fef0025cda8c3fcad051b6781e6ddd5df2d3ac07d48a0ba005ac9310c03eef8fa54a9c4691  ovpncc-0.1_rc1.tar.gz
"
